<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.account" /></title>
</head>
<body>
	<c:import url="header.jsp" />

	<c:if test="${customer ne null}">
		<div>
			<c:url value="/customer/update" var="updateRef" />
			<form action="${updateRef}" method="post">
				<table border="0">
					<tr>
						<td><spring:message code="adminpage.user.login" />:</td>
						<input type="hidden" value="${customer.login}" name="cLogin" />
						<td><c:out value="${customer.login }" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.user.newPassowrd" />:</td>
						<td><INPUT type="password" value="" name="cPassword" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.name" />:</td>
						<td><INPUT type="text" value="${customer.name}" name="cName" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.surname" />:</td>
						<td><INPUT type="text" value="${customer.surname}"
							name="cSurname" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.secondname" />:</td>
						<td><INPUT type="text" value="${customer.secondName}"
							name="cSecondname" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.driveLicense" />:</td>
						<td><INPUT type="text" value="${customer.driveLicense}"
							name="cDriverLicense" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.telephone" />:</td>
						<td><INPUT type="text" value="${customer.telephone}"
							name="cPhone" /></td>
					</tr>
					<tr>
						<td><spring:message code="page.customer.email" />:</td>
						<td><INPUT type="text" value="${customer.email}"
							name="cEmail" /></td>
					</tr>
					<tr>
						<td></td>
						<td></td>
					</tr>
					<tr>
						<td></td>
						<spring:message code="page.customer.change" var="buttonChange" />
						<td><INPUT type="submit" value="${buttonChange}" /></td>
					</tr>
				</table>
			</form>
		</div>
	</c:if>
</body>
	</html>
</jsp:root>